package com.es.controller;

import org.springframework.format.datetime.DateFormatter;
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;

/**
 * 描述:
 * es-meta-
 *
 * @author Derek
 * @create 2021-11-30 9:41
 */
public class BaseController {
    @InitBinder
    public void initDateBinder(WebDataBinder webDataBinder){
        webDataBinder.addCustomFormatter(new DateFormatter("yyyy-MM-dd"));
    }
}
